/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package econutri.persistencia.entidades;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import lomtools.persistence.Bean;

/**
 *
 * @author Leonardo Oliveira Moreira
 */
@Entity
@Table(name="refeicao")
public class Refeicao extends Bean {

    @Id
    @SequenceGenerator(name="refeicao_sequence", sequenceName="refeicao_codigo_seq")
    @GeneratedValue(generator="refeicao_sequence")
    @Column(name = "codigo", nullable=false)
    private Long codigo;
    @Column(name = "descricao", nullable=false)
    private String descricao;

    public Long getCodigo() {
        return codigo;
    }

    public void setCodigo(Long codigo) {
        this.codigo = codigo;
    }

    public String getDescricao() {
        return descricao;
    }

    public void setDescricao(String descricao) {
        this.descricao = descricao;
    }

}
